#!/usr/bin/env python

# reads a matrix and converts to dcsc (Doubly Compressed Sparse Column)

#
import helper


data_dir = '../data'
filename = 'testinput.dat'

Helper = helper.Helper()

I, J, V, map_keys = Helper.parse_abc_file(filename, data_dir)

#print ("I")
#print (I)
#print ("J")
#print (J)
#print ("V")
#print (V)
AUX, JC, CP, IR, NUM = Helper.parse_build_dcsc(filename, data_dir)

print ("JC")
print (JC)
print ("CP")
print (CP)
print ("IR")
print (IR)
print ("NUM")
print (NUM)

AUX, IR, RP, JC, NUM = Helper.parse_build_dcsr(filename, data_dir)

print ("IR")
print (IR)
print ("RP")
print (RP)
print ("JC")
print (JC)
print ("NUM")
print (NUM)